package com.example.chatroom.mapper;

import com.example.chatroom.model.User;
import org.apache.ibatis.annotations.Mapper;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 均先生
 * Date: 2024-03-06
 * Time: 18:41
 */
@Mapper
public interface UserMapper {
    // 插入用户 -> 注册
    int insertUser(User user);

    // 查询用户 -> 登录
    User selectUserByUsername(String username);
}
